home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Plug-In Power Pack for Netscape Communicator
/
Plug-In Power Pack for Netscape Communicator.iso
/
plugins
/
dataviews
/
include
/
dvparams.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-05-08
|
4KB
|
128 lines
/*
| filename = dvparams.h
|======================================================================
|
| copyright (c) 1982, V.I. Corporation
|
| dvparams.h
|
| Alan C Morse 2 Sept 82
|
|=======================================================================
|
| include-file description/function:
| Definitions of useful constants for DataViews.
|
|=======================================================================
|-----------------------------------------------------------------------
|
| COMPILE CONTROL CONSTANTS
|
*/
# define V_WITH_BUG_CHECKS 1
# define V_WITHOUT_BUG_CHECKS 0
# define V_COMPILE V_WITH_BUG_CHECKS
# define PRINTADR(msg,adr) PRINTF("%p %hl\n",msg,adr)
/*----------------------------------------------------------------------
|
| SYSTEM CONSTANTS --
|
| The largest numbers that will fit in each of the scalar types
*/
# define V_UC_LARGEST 255
# define V_S_LARGEST 32767
/*----------------------------------------------------------------------
|
| DATA STRUCTURE CHECK FLAGS --
|
| These constants are the values that go in the check
| flag fields of the DataViews data structures. They
| indicate the type of data structure.
*/
/* Variable descriptor */
#if 0
#ifdef WINNT
# define V_ID_VAR_DESC ((short) 1234)
#else
# define V_VAR_DESC ((short) 1234)
#endif
#else
# define V_VAR_DESC ((short) 1234)
#endif
/* Header for linked list of generic variable descriptors. */
# define V_VDLIST ((short) 2345)
/* Header for linked list of hanging variable descriptors. */
# define V_HVDLIST ((short) 3456 )
/*
| "Deleted" variable descriptor. (It couldn't actually be deleted,
| because some modifier type vd points to it.)
*/
# define V_VDDELETED ((short) 4567)
/* Data Group descriptor. */
# define V_DATAGROUP ((short) 4321)
/* Header for linked list of Data Group descriptors. */
# define V_DGLIST ((short) 6543)
/* "Deleted" Data group descriptor. (Couldn't actually be deleted, */
/* because it is modified by a Modifier type data group descriptor.) */
# define V_DGDELETED ((short) 5432)
/*----------------------------------------------------------------------
|
| MISCELLANEOUS CONSTANTS --
|
| Value returned by data access function to indicate that the datum's
| value is undefined.
*/
# define V_UNDEFINED -1
/*
| Highest and lowest values that can be returned by the data access
| functions when they are returning valid normalized values.
*/
# define V_HI_VALUE ((short) 32767)
# define V_LO_VALUE ((short) 0)
/*
| Value returned by a routine when an error has occurred. This is NOT
| an error code; it is just a reasonably innocuous value. Something
| has to be returned when a routine abnormally exits. Routines that
| include pieces of code that reference this parameter may temporarily
| modify its definition to something more appropriate (if necessary).
| This is deliberately not cast, since it may be needed as a pointer
| or a scalar; casting would generate compiler warnings.
*/
# define V_ERR_RETURN_VALUE (0)
/*===============================================================
|
| KEYBOARD state flags. These flags represent the possible
| states of the keyboard as used by DataViews;
|
*/
# define V_KB_ORIGINAL 1 /* The original keyboard state */
# define V_KB_CBREAK 2 /* CBREAK, NOECHO input */
/*===============================================================
|
| Flag to access the LOG BIT of the VARACCESS field of the
| VAR_DESC data structure.
*/
# define V_LOG_FIELD_BIT 0x10